<script setup>
	import store from "@/store/index.js"
	import {reLoading} from "@/uitls/tool.js"
	// #ifdef APP-PLUS||WEB
	uni.onTabBarMidButtonTap(() => { //点击中间按钮
		uni.navigateTo({
			url: "/subPages/addPopup/addPopup",
			animationType: 'slide-in-right',
		})
	})
	// #endif
	uni.onThemeChange(function(res) {
		store.commit("getSystemInfo")
		// reLoading()
	});
	store.commit("getSystemInfo")
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "@/style/base.scss";
	@import "@/style/global.scss";
	@import "@/style/theme.scss";
	page,
	view,
	image,
	scroll-view {
		padding: 0;
		margin: 0;
		box-sizing: border-box;
		font-size: $baseFontsize;

		::-webkit-scrollbar {
			// 滚动条？
			display: none;
		}
	}

	.uni-mask {
		backdrop-filter: blur(1px);
	}

	.uni-app--showrightwindow page {
		// 分屏阶段
		width: 400px;
	}

	.uni-app--showrightwindow+.uni-tabbar-bottom {
		// display: none;
		position: sticky;

		.uni-tabbar {
			bottom: 0;
			border: $baseBorder;
		}

		.uni-placeholder {
			display: none;
		}
	}

	uni-main:has(+uni-right-window) {

		// css +后一个兄弟节点  has判断
		uni-page[data-page="pages/index/index"],
		uni-page[data-page="pages/statistics/statistics"] {
			uni-page-wrapper::after {
				display: none !important;
			}

			.header_scroll {
				padding-bottom: calc(var(--window-bottom));
			}
		}
	}

	uni-main+uni-right-window {
		.uni-right-window {
			.statistics {
				@media (min-width: 1100px) {
					display: flex;
					flex-wrap: wrap;

					.index_list_box {
						width: 45%;
					}
				}
			}
		}
	}
</style>